home *** CD-ROM | disk | FTP | other *** search
/ Champak 145 / (Vol 145) Dec 21 2011.iso / Games / kupidon-strike.swf / scripts / frame_203 / PlaceObject2_271_1036 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Encoding:
Text File  |  2011-12-21  |  1.1 KB  |  46 lines

  1. onClipEvent(load){
  2.    function rem(flag, obj)
  3.    {
  4.       if(flag == 1)
  5.       {
  6.          i = 0;
  7.          while(i < _root.stage_objects.length)
  8.          {
  9.             if(_root.stage_objects[i] == this._name)
  10.             {
  11.                _root.todel_objects.push[i];
  12.             }
  13.             i++;
  14.          }
  15.          _root.stoned = true;
  16.          _root.bullet.vector.x = 0;
  17.          _root.bullet.vector.y = 0;
  18.          _root.gravity = 0;
  19.          _root.bullet.gotoAndPlay(2);
  20.       }
  21.       else if(flag == 2)
  22.       {
  23.          i = 0;
  24.          while(i < _root.stage_objects.length)
  25.          {
  26.             if(_root.stage_objects[i] == this._name)
  27.             {
  28.                _root.todel_objects.push[i];
  29.             }
  30.             i++;
  31.          }
  32.          _root[obj].speed = 0;
  33.          _root[obj].active = false;
  34.          _root[obj].gotoAndPlay(2);
  35.       }
  36.    }
  37.    pretest = false;
  38.    move_x = _X;
  39.    move_y = _Y;
  40.    move_direction = 1;
  41.    c_path = move_path;
  42.    tp = "heart-stone";
  43.    active = true;
  44.    _root.stage_objects.push(this._name);
  45. }
  46.